﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SiGeSIB.Data.Providers;

namespace SiGeSIB.Business.Impl.Providers
{
	public class BackupRestorationController : BaseController
	{
		public void Backup(string fileName)
		{
			IBackupRestorationDataProvider secProv = _DataProvider.CreateBackupDataProvider();

			secProv.Backup(fileName);
		}

		public void RestoreBackup(string fileName)
		{
			IBackupRestorationDataProvider secProv = _DataProvider.CreateBackupDataProvider();

			secProv.RestoreBackup(fileName);
		}
	}
}
